<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        input {
            flex: 1;
            height: 24px;
            margin: 0px 5px;
            background-color: #f5f5f5;
            border-radius: 12px;
            border: none;
        }

        .searchbox {
            margin-top: 15px;
            display: flex;
            font-size: 18px;
            font-weight: 600;
            color: rgb(61, 135, 238);
        }

        .title {
            margin: 10px 5px;
            font-weight: 700;
        }

        .block {
            margin: 10px 5px;
        }

        .block>span {
            font-size: 14px;
            margin-left: 5px;
            margin-bottom: 10px;
            padding: 3px;
            display: inline-block;
            background-color: #f5f5f5;
            border-radius: 4px;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="searchbox">
            <input type="text">
            <span>搜索</span>
        </div>
        <div class="block">
            <div class="title">历史搜索</div>
            <span v-for="(item,index) in arr">{{item}}</span>
        </div>
    </div>
</body>

</html>
<script src="vue-2.5.21.js"></script>
<script src="02搜索框.js"></script>